package com.logistic.dao;

import java.util.List;


import com.logistic.domain.User;
import com.logistic.domain.Waybill;
import com.logistic.page.QueryResult;


public interface WaybillDao {
	
	User login(User user);
	
	List getAll();
	
	int save(Waybill wb);
	
	int modify(Waybill wb);
	
	int modifyByManager(Waybill wb);
	
	void delete(String wbId);
	
	public List searchWaybill(Waybill wb);
	
	public Waybill getWaybillById(Waybill wb);
	
	public List findWaybillByUidAndStatus(Waybill wb);
	
	public List getWayillByUid(Waybill wb);
	
	public List findEnterWaybillNum(String Uid);
	
	public List searchWaybillForecast(Waybill wb);
	
	public List searchByInput(Waybill wb);
	
	public QueryResult findWaybillsByStatus(String wbArea,String status,int first,int max);
	
	public List findWaybillsByStatusWithoutPage(Waybill wb);
	
	public QueryResult findCurrentWaybillByUid(String Uid,int first,int max);
	
	public QueryResult findHistoryWaybillByUid(String Uid,int first,int max);
}

